import request from '@/utils/request'
// 获取主页数据
export function getMenuList(data){
  return request({
    url:'menu/query',
    method:'post',
    data
  })
}
// 新增菜单
export function addMenuList(data){
  return request({
    url:'menu/save',
    method:'post',
    data
  })
}
// 删除菜单
export function delMenu(id){
  return request({
    url:`menu/delete/${id}`,
    method:'delete',
  })
}
// 修改菜单
export function editMenu(){
  return request({
    url:`menu/update`,
    method:'post',
  })
}
